home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / Adobe AIR / Versions / 1.0 / Adobe AIR Application Installer.swf / scripts / _SecurityInfoWatcherSetupUtil.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.7 KB  |  44 lines

  1. package
  2. {
  3.    import flash.display.Sprite;
  4.    import mx.binding.FunctionReturnWatcher;
  5.    import mx.binding.IWatcherSetupUtil;
  6.    import mx.binding.PropertyWatcher;
  7.    import mx.core.IFlexModuleFactory;
  8.    
  9.    public class _SecurityInfoWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  10.    {
  11.       public function _SecurityInfoWatcherSetupUtil()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          SecurityInfo.watcherSetupUtil = new _SecurityInfoWatcherSetupUtil();
  19.       }
  20.       
  21.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  22.       {
  23.          var target:Object = param1;
  24.          var propertyGetter:Function = param2;
  25.          var bindings:Array = param3;
  26.          var watchers:Array = param4;
  27.          watchers[4] = new PropertyWatcher("greenCircleIcon",{"propertyChange":true},[bindings[2]],propertyGetter);
  28.          watchers[2] = new PropertyWatcher("moreOptionsButton",{"propertyChange":true},[bindings[1]],propertyGetter);
  29.          watchers[5] = new PropertyWatcher("redCircleIcon",{"propertyChange":true},[bindings[2],bindings[6]],propertyGetter);
  30.          watchers[0] = new FunctionReturnWatcher("getInstance",target,function():Array
  31.          {
  32.             return [];
  33.          },null,[bindings[0]],null);
  34.          watchers[3] = new PropertyWatcher("identityVerified",{"propertyChange":true},[bindings[2],bindings[4],bindings[3],bindings[5]],propertyGetter);
  35.          watchers[4].updateParent(target);
  36.          watchers[2].updateParent(target);
  37.          watchers[5].updateParent(target);
  38.          watchers[0].updateParent(LocalizationManager);
  39.          watchers[3].updateParent(target);
  40.       }
  41.    }
  42. }
  43.  
  44.